#ifndef PARTICLEEMITTER_H
#define PARTICLEEMITTER_H

#include <assimp.hpp>
#include "CannonParticle.h"
#include <vector>

class particleEmitter
{
 public:
	particleEmitter(void);
	~particleEmitter(void);

	void setParticleMode(unsigned);
	void emit(float);
	void updateMyParticles(float);
        void setPosition(aiVector3D pos){emitPos = pos;}
        std::vector<CannonParticle> particles; 

 private:

        double getRand(double RANGE_MIN, double RANGE_MAX);
        double getRand0(double RANGE);

        unsigned particleMode;
	float genRate;
	aiVector3D emitPos;

	float brazierRadius;
        float yOffset;
	float hvelRadius;
	float velRadius;

	float particleLife;
};

#endif
